#ifndef RGBVIDEOWIDGET_H
#define RGBVIDEOWIDGET_H

#include <QWidget>

class RgbCapture;


namespace Ui {
class RgbVideoWidget;
}

class RgbVideoWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RgbVideoWidget(QWidget *parent = nullptr);
    ~RgbVideoWidget();

private slots:
    void on_startButton_clicked();

    void on_stopButton_clicked();

    void onDecoderStarted();

    void onDecoderStopped();

    void handleError(const QString& error);

private:
    Ui::RgbVideoWidget *ui;
    RgbCapture* rgbCapture;
};

#endif // RGBVIDEOWIDGET_H
